package com.ja.openchat.ui.contact;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import com.ja.openchat.R;
import com.ja.openchat.views.UserAvatarView;
import com.zy.openchat.core.model.message.ChatInfo;

import java.util.List;

public class CircleGroupAdapter extends BaseQuickAdapter<ChatInfo, BaseViewHolder> {

    public CircleGroupAdapter(@Nullable List<ChatInfo> data) {
        super(R.layout.item_post_circle_user_avatar, data);
    }

    @Override
    protected void convert(@NotNull BaseViewHolder helper, ChatInfo chatInfo) {
        UserAvatarView userAvatarView = helper.getView(R.id.user_image);
        userAvatarView.showGroup(chatInfo);
    }
}
